/*
宏定义与预处理

*/
#include <iostream>
//#define DEBUG

using namespace std;
int main(){
    int i = 0;
    char c ;
    while(cin>>c){
        if(c == 'q' || c == 'Q'){
            cout<<"we got "<<c<<",quit"<<endl;
            break;
        }
        else{
        	i++;
#ifdef DEBUG
	cout<<"we got "<<c<<",we not quit"<<endl;
	cout<<"now i is "<<i<<endl;
#endif
#ifndef DEBUG
    cout<<"didnot have define DEBUG"<<endl;
#endif
        }
    }
    return 0;
}